#define _CRT_SECURE_NO_WARNINGS 1
#pragma warning(disable : 6031)
#include "sl.h"

void test1()
{
	sl* list = init();
	pushback(list, 1);
	pushback(list, 2);
	pushback(list, 3);
	pushback(list, 4);
	sl* pos = findsl(list,2);
	if (pos)
	{
		insert(pos, 4);
	}
	print(list);
	destroy(list);
	list = NULL;
}

int main()
{
	test1();
	return 0;
}